package metalink.admin;

import model.admin.LibraryMo;

import com.opensymphony.xwork2.ActionSupport;


public class BookReturned extends ActionSupport {
	int book_id;
	String borrower_type,view;

	public String execute() {
		/*LibraryStudentVo lsv=new LibraryStudentVo();
		lsv.setBook_id(book_id);
		lsv.setBorrower_type(borrower_type); */
		System.out.println("view = "+view+" book_id = "+book_id+" borrower_type="+borrower_type);
		LibraryMo mo = new LibraryMo();
		try {
			mo.returned(book_id, borrower_type);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return ERROR;
			
		}
		return SUCCESS;
	}
	
	
	
	
	public String getView() {
		return view;
	}




	public void setView(String view) {
		this.view = view;
	}




	public int getBook_id() {
		return book_id;
	}
	public void setBook_id(int book_id) {
		this.book_id = book_id;
	}
	public String getBorrower_type() {
		return borrower_type;
	}
	public void setBorrower_type(String borrower_type) {
		this.borrower_type = borrower_type;
	}

}
